import React, { Component } from 'react'
import './MainPage.css'
import Header from '../../components/Header'
import Footer from '../../components/Footer'
import { Route } from 'react-router-dom'
import { navBarRoutes } from '../../router/routes'
export default class MainPage extends Component {
  render() {
    return (
      <div className='MainPage'>
        <Header></Header>
        <div className="content">
          {
            navBarRoutes.map(
              (v) => <Route key={v.path} path={v.path} exact component={v.component}></Route>
            )
          }
        </div>
        <Footer></Footer>
      </div>
    )
  }
}
